{include file="common/head"/}
<div class="admin-main fadeInUp animated">
    <fieldset class="layui-elem-field layui-field-title">
        <legend>{$menutitle}</legend>
    </fieldset>
     <blockquote class="layui-elem-quote">
        1、《控制器/方方法》：意思是 控制器/方法; 例如 System/sysList<br/>
        2、图标名称为左侧导航栏目的图标样式，具体可查看<a href="https://icomoon.io/app/#/select" target="_blank">premium</a>图标
    </blockquote>
    <form class="layui-form layui-form-pane" method="post" action="{:url('menuupdate',array('id' => $menu['id']))}">
        <div class="layui-form-item">
            <label class="layui-form-label">上级栏目</label>
            <div class="layui-input-3">
                <select name="pid" id="pid">
                    {$categorys|raw}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">栏目名称</label>
            <div class="layui-input-4">
                <input type="text" name="title" lay-verify="required" value="" placeholder="栏目名称" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux red">*</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">栏目URL</label>
            <div class="layui-input-4">
                <input type="text" name="href" value="" lay-verify="required" placeholder="请输入控制器/方法"  class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux red">*</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">栏目ICON</label>
            <div class="layui-input-4">
                <input type="text" name="icon"  value="" placeholder="icon" class="layui-input">
            </div>
        </div>
         <div class="layui-form-item">
            <label class="layui-form-label">是否显示</label>
            <div class="layui-input-block">
                <input type="radio" name="status" lay-filter="is_show" value="1" title="显示" checked >
                <input type="radio" name="status" lay-filter="is_show" value="0" title="隐藏">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-4">
                <input type="text" name="sort"  value="50"  class="layui-input" style="width:60px;">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">添加时间</label>
            <div class="layui-input-4">
                <input type="text" name="addtime" id="addtime"  value="{$now||date='Y-m-d H:i:s'}" class="layui-input times">
            </div>

        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">显示位置</label>
            <div class="layui-input-4">
                <input type="radio" name="menustatus" lay-filter="is_show" checked value="1"  title="左侧导航">
                <input type="radio" name="menustatus" lay-filter="is_show" value="0"  title="页内显示">
            </div>

        </div>
         <div class="layui-form-item">
            <label class="layui-form-label">验证权限</label>
            <div class="layui-input-4">
                <input type="radio" name="authopen" lay-filter="is_show" checked value="1" title="验证">
                <input type="radio" name="authopen" lay-filter="is_show" value="0" title="不验证">
            </div>

        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit" class="layui-btn" lay-submit="" lay-filter="submit">{:lang('submit')}</button>
                <a href="{:url('index')}" class="layui-btn layui-btn-primary">{:lang('back')}</a>
            </div>
        </div>
    </form>
</div>
{include file="common/foot"/}
<script src="__PUBLIC__/static/common/js/jquery.2.1.1.min.js"></script>
<script>
    layui.use(['form','upload','laydate'], function () {
        var form = layui.form,upload = layui.upload,laydate = layui.laydate;
        laydate.render({
			elem: '#addtime' //指定元素
		    ,type:'datetime'
		 });
    });
</script>